# 正三角
input = input('请输入一个整数：');
try:
    n = int(input)
except:
    print('输入错误')
    exit()
for i in range(n):
        print(i)
        # 打印每一层前面的空格
        print('1' * ( n - i - 1 ), end='')
        # 打印星号
        print('*' * (  2 * i + 1))
# 倒三角

# print('倒三角')
# # 从 n 到 0 的反向遍历
# for i in range(n, 0, -1):
#     # 打印每一层前面的空格
#     print(' ' * (n - i), end='')  # 注意这里空格数量的变化
#     # 打印星号
#     print('*' * (2*i - 1))


# n = int(input('请输入一个整数：'))
# i = 1
# while i <= n:
#     j = 0
#     while j < n - i:
#         print(' ', end='')
#         j += 1
#     j = 0
#     while j < 2 * i - 1:
#         print('*', end='')
#         j += 1
#     print('')
#     i += 1


[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
